# from rest_framework.viewsets import ViewSetMixin
# from rest_framework.viewsets import ModelViewSet  # 使用框架编辑好的
# from .models import Api
# from .serializers import ApiSerializers
#
# # from .commonviews import GenericAPIView,\
# #     ListModelMixin,\
# #     CreateModelMixin,\
# #     SelectModelMixin,\
# #     UpdateModelMixin,\
# #     DeleteModelMixin
#
# #
# # class ModelViewSet(ViewSetMixin,GenericAPIView,ListModelMixin,CreateModelMixin,SelectModelMixin,UpdateModelMixin,DeleteModelMixin):
# #     pass
# #
# # class ApiModelViewSet(ModelViewSet):
# #     query_set = Api.objects.all()
# #     serializer_class = ApiSerializers
#
# class ApiModelViewSet(ModelViewSet):
#     queryset = Api.objects.all()
#     serializer_class = ApiSerializers
